package day5.Work;

public class Employee {
    private String id;
    private  String name;

    public Employee() {
    }

    public Employee(String id, String name) {
        this.id = id;
        this.name = name;
    }
    public void doWork(){
        System.out.print("员工"+name+"开始工作 ,x");
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //以下不能被重写
    //父类中的静态方法
    public static void staticFun(){
        System.out.println("父类中的静态方法");
    }
    //父类中的私有方法
    private void singFun(){
        System.out.println("父类中的私有方法");
    }

}
